package my.project.util;

/**
 * 简单日志工具类
 * Log.log("message");
 * Log.log("new message a is {}, b is {}", "a", 1);
 */
public class Log {
    public static void log(CharSequence msg) {
        System.out.println(msg);
    }

    public static void log(String format, Object... params) {
        System.out.printf(format.replaceAll("\\{}", "%s") + "\n", params);
    }
}
